﻿namespace ETModel
{
    public class RpcIdGenerater
    {
        private static readonly int MAX_ID = byte.MaxValue;

        private static int _curId = 0;

        public static byte GenerateId()
        {
            return (byte)((++_curId) % MAX_ID);
        }
    }
}
